<?php 
class userWu_Form_FrmAcl extends Zend_Form
{
	public function init()
    {
//User Access 
		$acl_id= new Zend_Form_Element_Hidden("acl_id");
		$this->addElement($acl_id);
//User Type
    	$db = new Application_Model_DbTable_DbGlobal();
    	$sql = "SELECT user_type, user_type_id FROM rsv_acl_user_type";
    	$rows = $db->getGlobalDb($sql);
    	$options = array(""=>" - - - Select Type - - - ");
    	foreach ($rows as $read) $options[$read["user_type_id"]]=$read["user_type"];
    	$user_type_id = new Zend_Form_Element_Select('user_type_id');
    	$user_type_id->setMultiOptions($options);
    	$user_type_id->setAttribs(array(
    			'user_type_id'=>'user_type_id',
    			'class'=>'form-control validate[required]',
    	));
    	$this->addElement($user_type_id);
//Module
    	$module=new Zend_Form_Element_Text('module');
    	$module->setAttribs(array(
    		'id'=>'module',
    		'class'=>'validate[required]',
    	));
    	$this->addElement($module);
    	
//Controller
    	$controller=new Zend_Form_Element_Text('controller');
    	$controller->setAttribs(array(
    		'id'=>'controller',
    	    'class'=>'validate[required]',
    	));
    	$this->addElement($controller);
    	
//Action
    	$action=new Zend_Form_Element_Text('action');
    	$action->setAttribs(array(
    		'id'=>'action',
    	 	'class'=>'validate[required]',
    	));
    	$this->addElement($action);
    }
}
?>